define
(
    function()
    {
        return function(socketId)
        {        
            var _creationTime = new Date();
            var _socketId;            

            this.getSocketId = function() { return _socketId; };
            this.setSocketId = function(socketId)
            {
                if (!socketId)
                {
                    throw "Invalid socket id";
                }

                _socketId = socketId;
            };

            this.getCreationTime = function() {return new Date(_creationTime.getTime()); };

            this.setSocketId(socketId);
        }
    }
);